<%--
  Created by IntelliJ IDEA.
  User: Gauss
  Date: 09.05.13
  Time: 18:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<html>
<head>
    <title></title>
</head>
<body>
    <h4>Рейс #${flight.id}
    </h4>
    <h5>Из</h5>
    Аэропорт: ${flight.departureAirport.name}
    Страна:   ${flight.departureAirport.country.name}
    Время:    ${flight.departureTime}
    <h5>В</h5>
    Аэропорт: ${flight.destinationAirport.name}
    Страна:   ${flight.destinationAirport.country.name}
    Время:    ${flight.destinationTime}
    <form:form commandName="ticket">
        <form:hidden path="flightId" />
        <form:input path="ticketCount"/>
        <form:select path="ticketType">
            <form:option value="Эконом" />
            <form:option value="Бизнесс" />
            <form:option value="Первый" />
        </form:select>
        <input type="submit" value="Продолжить" />
    </form:form>
</body>
</html>